package com.tengfei.main.question.service;


import com.tengfei.common.core.domain.PageQuery;
import com.tengfei.common.core.page.TableDataInfo;
import com.tengfei.main.question.domain.bo.ObjAndSubBo;
import com.tengfei.main.question.domain.bo.ObjectiveBo;
import com.tengfei.main.question.domain.bo.SubjectiveBo;

import java.util.List;

/**
 * 客观题库Service接口
 *
 * @author tengfei
 * @date 2022-07-28
 */
public interface IObjAndSubService {


    /**
     * 查询客观题库列表
     */
    List queryList(ObjAndSubBo bo);

    Object queryByIdAndType(Long quId, Integer quType);

    Boolean deleteByIds(List<ObjAndSubBo> bos);

    TableDataInfo queryQuPageList(ObjAndSubBo bo, PageQuery pageQuery);

    Boolean insertObjByBo(ObjectiveBo bo);


    Boolean insertSubByBo(SubjectiveBo bo);

    Boolean updateObjByBo(ObjectiveBo bo);

    Boolean updateSubByBo(SubjectiveBo bo);

    boolean isObj(Integer quType);
}
